package com.atguigu.gmall.user.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.atguigu.gmall.user.entity.UserAddress;
import com.atguigu.gmall.user.service.UserAddressService;
import com.atguigu.gmall.user.mapper.UserAddressMapper;
import org.springframework.stereotype.Service;

import java.util.List;

/**
* @author 10574
* @description 针对表【user_address(用户地址表)】的数据库操作Service实现
* @createDate 2022-12-14 09:25:25
*/
@Service
public class UserAddressServiceImpl extends ServiceImpl<UserAddressMapper, UserAddress>
    implements UserAddressService{

    @Override
    public List<UserAddress> getUserAddress(Long userId) {
        List<UserAddress> addressList = lambdaQuery().eq(UserAddress::getUserId, userId).list();
        return addressList;
    }
}




